#include "Global.h"
#include "..\..\User\config.h"

 STATE_STATUS eFsm_FAN_Status;
 FSM_FAN_STATE eFsmCur_FAN_State;
 FSM_FAN_STATE eFsmNext_FAN_State;
 FSM_FAN_STATE eFsmLast_FAN_State;
    
void f_FSM_FAN_StateJump(void)
{
    if(eFsmCur_FAN_State!=eFsmNext_FAN_State&&eFsm_FAN_Status==STATUS_QUITE)
    {
        eFsmLast_FAN_State=eFsmCur_FAN_State;
        eFsmCur_FAN_State=eFsmNext_FAN_State;

        eFsm_FAN_Status=STATUS_ENTER;
    }
}
void f_FSM_FAN_StateSet(FSM_FAN_STATE eSetState)
{
    if(eFsmCur_FAN_State!=eSetState&&eFsmNext_FAN_State!=eSetState&&eFsm_FAN_Status==STATUS_RUN)
    {
        eFsmNext_FAN_State=eSetState;
        eFsm_FAN_Status=STATUS_QUITE;
    }   
		
	f_Flow_FsmFan_Routine();
}
void f_FSM_FAN_Init(void)
{
    eFsm_FAN_Status = STATUS_ENTER;
    eFsmCur_FAN_State = FSM_FAN_NORMAL;
    eFsmNext_FAN_State = FSM_FAN_NORMAL;
    eFsmLast_FAN_State = FSM_FAN_NORMAL;
}
